<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/IncludeTop.jsp" %>
<html>
<head>
<title>无标题文档</title>
</head>

<body>
	<table width="100%" height="100%" border="1">
	
		<tr height="5%"><td colspan="6" width="100%" align="center">足球赛事综合列表</td></tr>
		
			<tr>
				<th align="center" width="10%">赛区</th>
				<th align="center" width="8%">时间</th>
				<th align="center" width="30%">主客队伍</th>
				<th align="center" width="5%">独赢</th>
				<th align="center" width="27%">让球</th>
				<th align="center" width="20%">大小球</th>
			</tr>
		
		<c:forEach var="event" items="${events}">	
			<tr>
				<td rowspan="3" align="center">
					<c:out value="${event.comp.league.name_zh}" /><br/>
					<c:if test="${event.type eq '单式'}">
					<font color="white" style="background:blue"><c:out value="${event.type}"/></font>
					</c:if>
					<c:if test="${event.type eq '滚球'}">
					<font color="white" style="background:red"><c:out value="${event.type}"/></font>
					</c:if>
				</td>
				<td rowspan="3" align="center"><fmt:formatDate value="${event.comp.time}" type="both" /></td>
				<td rowspan="2">
					<c:out value="${event.comp.home.name_zh}"></c:out>
					<br/>
					<c:out value="${event.comp.road.name_zh}"></c:out>
				</td>
				<td><c:out value="${event.duying.win}" /></td>
				<td align="right">
					<c:if test="${event.rangqiu.who2who eq '主让客'}">
						<font color="blue"><c:out value="${event.rangqiu.pankou}" /></font>&nbsp;
					</c:if>
					<c:out value="${event.rangqiu.home}" /> &nbsp;
				</td>
				<td align="right">大 <c:out value="${event.daxiao.pankou}" />&nbsp; <c:out value="${event.daxiao.home}"></c:out> </td>
			</tr>
				
			<tr>
				<td ><c:out value="${event.duying.lose}" /></td>
				<td align="right">
					<c:if test="${event.rangqiu.who2who eq '客让主'}">
						<font color="blue"><c:out value="${event.rangqiu.pankou}" /></font>&nbsp;
					</c:if>
					<c:out value="${event.rangqiu.road}" />&nbsp;
				</td>
				<td align="right">小 <c:out value="${event.daxiao.pankou}" />&nbsp; <c:out value="${event.daxiao.road}"></c:out> </td>
			</tr>
			
			<tr>
				<td>和局</td>
				<td><c:out value="${event.duying.draw}" /></td>
				<td colspan="2" align="right">
					<a href="viewEvent.do?id=<c:out value="${event.id}" />">修改</a>&nbsp;&nbsp;
					<a href="deleteEvent.do?id=<c:out value="${event.id}" />">取消赛事</a>&nbsp;&nbsp;
				</td>
			</tr>
		</c:forEach>
		
		<tr height="100%">
			<td colspan="6">
			</td>
		</tr>
	</table>
	<%@ include file="/WEB-INF/jsp/pager.jsp"%>
</body>

</html>

  

